import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView
    },
    {
      path: '/about',
      name: 'about',
      redirect:"/user",
      children:[
        {
          path: '/user',
          name: 'user',
          component: () => import('../views/user.vue')
        },
        {
          path: '/userr',
          name: 'userr',
          component: () => import('../views/userr.vue')
        },
        {
          path: '/gift',
          name: 'gift',
          component: () => import('../views/gift.vue')
        },
        {
          path: '/order',
          name: 'order',
          component: () => import('../views/order.vue')
        },
        {
          path: '/live',
          name: 'live',
          component: () => import('../views/live.vue')
        }
        
      ],
      component: () => import('../views/AboutView.vue')
    }
  ]
})

export default router
